\documentclass[b5paper,9pt,twoside,openany]{book}

\input{setting}
\begin{document} 

\frontmatter
\include{title}
\setcounter{tocdepth}{3}
\tableofcontents
\include{preface}

\mainmatter
\part{初始化阶段}
\include{environ}
\include{boot}
\include{setup}
\include{pm}
\include{trap}

\part{内核核心}
\include{x86paging}
\include{bootmem}
\include{mmpagging}
\part{基本设备驱动程序}
\include{driver}
\include{keyboard}
\include{console}
\include{vfs}
\include{ext2}
\include{proc}

\part{兼容Linux}
\include{syscall}
\include{so}

\part{Linux高级特性}
\include{multithread}
\include{signal}
\include{sync}
\include{uml}
\include{vm}

\part{x86高级特性}
\include{apic}
\include{smp}

\part{附录}
\appendix
\include{gas}
\include{make}
 \include{makebasic}
 \include{makesimplied}
 \include{makekbuild}
\include{gdb}
\include{grub2}
\include{crosscompile}
\include{glossary}
\include{reference}
\backmatter
\end{document}
